﻿using System;
using System.IO;

namespace AmiDraw.Lib.Factory
{
    public class PathFactory
    {
        public static string GetPackPath(string packName,ResultQueryMode mode = ResultQueryMode.Core)
        {
            return mode switch
            {
                ResultQueryMode.Core=>
                    Path.Combine(Directory.GetCurrentDirectory(),"Ami","抽卡3","packs",packName),
                ResultQueryMode.Editor=>
                    Path.Combine(Directory.GetCurrentDirectory(),"projects",packName),
                _ => throw new ArgumentOutOfRangeException(nameof(mode), mode, null)
            };
        }


        public static string GetResImagePath(string packName,string resName,ResultQueryMode mode )
        {
            return Path.Combine(GetPackPath(packName, mode), "datas", "image", resName);

        }
    }
}